{template '_header'}
<style type="text/css">
	.vlun_group{background:#FFF;margin:10px 0;padding: 4px;}
	.vlun-text{font-size:14px; margin:5px auto;color:#000; text-align: center;}
	.vlun-cell{border-top: 1px solid #ededed;padding:5px 0;}
@font-face {
  font-family: 'iconfont';  /* project id 551012 */
  src: url('//at.alicdn.com/t/font_551012_fceu04arl0xxn7b9.eot');
  src: url('//at.alicdn.com/t/font_551012_fceu04arl0xxn7b9.eot?#iefix') format('embedded-opentype'),
  url('//at.alicdn.com/t/font_551012_fceu04arl0xxn7b9.woff') format('woff'),
  url('//at.alicdn.com/t/font_551012_fceu04arl0xxn7b9.ttf') format('truetype'),
  url('//at.alicdn.com/t/font_551012_fceu04arl0xxn7b9.svg#iconfont') format('svg');
}
.iconfont{
    font-family:"iconfont" !important;
    font-size:20px;font-style:normal;
    -webkit-font-smoothing: antialiased;
    -webkit-text-stroke-width: 0.2px;
    -moz-osx-font-smoothing: grayscale;}
</style>
<div class='fui-page  fui-page-current'>
    <div class="fui-header">
		<div class="fui-header-left">
			<a class="back" onclick='location.back()'></a>
		</div>
		<div class="title">身份中心</div>
		<div class="fui-header-right"></div>
	</div>

	<div class='fui-content member-page navbar'>
		<div style="overflow: hidden;height: 7.5rem;position: relative;background: #fff">
			<div class="headinfo" style="z-index:100;border: none;">
				<a class="setbtn" href="{php echo mobileUrl('member/info')}" data-nocache='true'><i class="icon icon-shezhi"></i></a>
				<div class="child">
					<div class="title">{$_W['shopset']['trade']['moneytext']}</div>
					<div class="num">{php echo number_format($member['credit2'],2)}</div>
					{if empty($_W['shopset']['trade']['closerecharge'])}<a href="{php echo mobileUrl('member/recharge')}"><div class="btn">充值</div></a>{/if}
				</div>
				<div class="child userinfo">
					<a href="{php echo mobileUrl('member/info')}" data-nocache="true" style="color: white;">
						<div class="face"><img src="http://wx.qlogo.cn/mmopen/roic2o8ibMd6grv6C43SBhic6icbsEzEXFW6KiaWGUygELsorjia2w7bYm1Z7kcoAuiblZuX6PBDgZvRfdXrr0JongMRtPmpd4ggAhf/132" onerror="this.src='../addons/ewei_shopv2/static/images/noface.png'"/></div>
						<div class="name">{$member['nickname']}</div>
					</a>
					<div class="level" {if !empty($_W['shopset']['shop']['levelurl'])}onclick='location.href="{$_W['shopset']['shop']['levelurl']}"'{/if}>
					{if empty($level['id'])}
					[{if empty($_W['shopset']['shop']['levelname'])}普通会员{else}{$_W['shopset']['shop']['levelname']}{/if}]
					{else}
					[{$level['levelname']}]
					{/if}
					{if !empty($_W['shopset']['shop']['levelurl'])}<i class='icon icon-question1' style='font-size:0.65rem'></i>{/if}
				</div>
			</div>
			<div class="child">
				<div
						 class="title">{$_W['shopset']['trade']['credittext']}</div>
				<div class="num">{php echo number_format($member['credit1'],0)}</div>
				{if $open_creditshop}<a href="{php echo mobileUrl('creditshop')}" class="external"><div class="btn">兑换</div></a>{/if}
			</div>
		</div>
		<div class="member_header"></div>
		</div>
		
	{if $set['is_use_order'] == 1}
	<div class="fui-cell-group fui-cell-click" style="margin-top: 0">
		<a class="fui-cell external" href="{php echo mobileUrl('order')}">
			<div class="fui-cell-icon"><i class="icon icon-dingdan1"></i></div>
			<div class="fui-cell-text">我的订单</div>
			<div class="fui-cell-remark" style="font-size: 0.65rem;">查看全部订单</div>
		</a>
		<div class="fui-icon-group selecter">
			<a class="fui-icon-col external" href="{php echo mobileUrl('order',array('status'=>0))}">
				{if $statics['order_0']>0}<div class="badge">{$statics['order_0']}</div>{/if}
				<div class="icon icon-green radius"><i class="icon icon-daifukuan1"></i></div>
				<div class="text">待付款</div>
			</a>
			<a class="fui-icon-col external" href="{php echo mobileUrl('order',array('status'=>1))}">
				{if $statics['order_1']>0}<div class="badge">{$statics['order_1']}</div>{/if}
				<div class="icon icon-orange radius"><i class="icon icon-daifahuo1"></i></div>
				<div class="text">待发货</div>
			</a>
			<a class="fui-icon-col external" href="{php echo mobileUrl('order',array('status'=>2))}">
				{if $statics['order_2']>0}<div class="badge">{$statics['order_2']}</div>{/if}
				<div class="icon icon-blue radius"><i class="icon icon-daishouhuo1"></i></div>
				<div class="text">待收货</div>
			</a>
			<a class="fui-icon-col external" href="{php echo mobileUrl('order',array('status'=>4))}">
				{if $statics['order_4']>0}<div class="badge">{$statics['order_4']}</div>{/if}
				<div class="icon icon-pink radius"><i class="icon icon-daituikuan2"></i></div>
				<div class="text">退换货</div>
			</a>
		</div>
	</div>
	{/if}


		{if $needbind}
			<div class="fui-cell-group fui-cell-click external">
				<a class="fui-cell"  href="{php echo mobileUrl('member/bind')}">
					<div class="fui-cell-text">
						<i class="icon icon-shouji" style="color: #666;"></i>
							绑定手机号
						<div class="fui-cell-tip">如果您用手机号注册过会员或您想通过微信外购物请绑定您的手机号码</div>
					</div>
					<div class="fui-cell-remark"></div>
				</a>
			</div>
		{/if}

		{if !empty($roleuser)}
			<div class="fui-cell-group fui-cell-click external">
				<a class="fui-cell"  href="{php echo mobileUrl('mmanage')}" data-nocache="true">
					<div class="fui-cell-text">
						<i class="icon icon-shouji" style="color: #666;"></i>
						{php echo m('plugin')->getName('mmanage')}
						<div class="fui-cell-tip">当前用户已绑定操作员，您可以通过手机管理商城</div>
					</div>
					<div class="fui-cell-remark"></div>
				</a>
			</div>
		{/if}




	{if $newstore_plugin}
	<div class="fui-cell-group fui-cell-click">
		<a class="fui-cell external" href="{php echo mobileUrl('newstore/norder')}">
			<div class="fui-cell-icon"><i class="icon icon-list"></i></div>
			<div class="fui-cell-text">我的预约</div>
			<div class="fui-cell-remark" style="font-size: 0.65rem;">查看全部预约</div>
		</a>
		<div class="fui-icon-group selecter">
			<a class="fui-icon-col external" href="{php echo mobileUrl('newstore/norder',array('status'=>0))}">
				{if $statics['norder_0']>0}<div class="badge">{$statics['norder_0']}</div>{/if}
				<div class="icon icon-green radius"><i class="icon icon-pay"></i></div>
				<div class="text">待付款</div>
			</a>
			<a class="fui-icon-col external" href="{php echo mobileUrl('newstore/norder',array('status'=>1))}">
				{if $statics['norder_1']>0}<div class="badge">{$statics['norder_1']}</div>{/if}
				<div class="icon icon-orange radius"><i class="icon icon-like"></i></div>
				<div class="text">待使用</div>
			</a>
			<a class="fui-icon-col external" href="{php echo mobileUrl('newstore/norder',array('status'=>3))}">
				{if $statics['norder_3']>0}<div class="badge">{$statics['norder_3']}</div>{/if}
				<div class="icon icon-blue radius"><i class="icon icon-discover"></i></div>
				<div class="text">已完成</div>
			</a>
			<a class="fui-icon-col external" href="{php echo mobileUrl('newstore/norder',array('status'=>4))}">
				{if $statics['norder_4']>0}<div class="badge">{$statics['norder_4']}</div>{/if}
				<div class="icon icon-pink radius"><i class="icon icon-remind"></i></div>
				<div class="text">取消预约</div>
			</a>
		</div>
	</div>
	{/if}


	{if !empty($haveverifygoods)}
	<div class="fui-cell-group fui-cell-click">
		<a class="fui-cell external" href="{php echo mobileUrl('verifygoods')}">
			<div class="fui-cell-icon"><i class="icon icon-list"></i></div>
			<div class="fui-cell-text">待使用商品信息</div>
			<div class="fui-cell-remark" style="font-size: 0.5rem;"></div>
		</a>

		{if !empty($verifygoods)}
		<div class="fui-icon-group selecter" style="overflow: scroll;">
			<ul class="banner-ul">
				{loop $verifygoods $item}
				<li   {if $item['numlimit']}class="banner-li-blue"{/if}>
				<a  {if $item['cangetcard']} href="javascript:;" onclick="addCard('{$item['card_id']}','{$item['cardcode']}')" {else} href="{php echo mobileUrl('verifygoods/detail',array('id'=>$item['id']))}" {/if}>
				<div></div>
				<span>  {if $item['cangetcard']}  待激活 {else}待使用{/if}</span>
				<img src="{$item['thumb']}" alt="">
				<p>	{$item['title']}</p>
				</a>
				</li>
				{/loop}
			</ul>
		</div>
		{/if}
	</div>
	{/if}

	{if p('task')}
	{php $open = pdo_get('ewei_shop_task_default',array('uniacid'=>$_W['uniacid']),array('open'));}
	{if $open['open']}
	<div class="fui-cell-group fui-cell-click">
		<a class="fui-cell"  href="{php echo mobileUrl('task')}">
			<div class="fui-cell-icon"><i class="icon icon-hexiaoshangpin"></i></div>
			<div class="fui-cell-text"><p>任务中心</p></div>
			<div class="fui-cell-remark"></div>
		</a>
	</div>
	{/if}
	{/if}
	{if $hasThreen}
	<div class="fui-cell-group fui-cell-click">
		<a class="fui-cell"  href="{php echo mobileUrl('threen')}">
			<div class="fui-cell-icon"><i class="icon icon-profile"></i></div>
			<div class="fui-cell-text"><p>{$plugin_threen_set['texts']['threen']}</p></div>
			<div class="fui-cell-remark"></div>
		</a>
	</div>
	{/if}
	{if $haslive}
	<div class="fui-cell-group fui-cell-click">
		<a class="fui-cell" href="{php echo mobileUrl('live')}">
			<div class="fui-cell-icon"><i class="icon icon-zhibo1"></i></div>
			<div class="fui-cell-text"><p>{$live_set['pluginname']}</p></div>
			<div class="fui-cell-remark"></div>
		</a>
	</div>
	{/if}
	{if $hassign}
	<div class="fui-cell-group fui-cell-click">
		<a class="fui-cell" href="{php echo mobileUrl('sign')}">
			<div class="fui-cell-icon"><i class="icon icon-qiandao"></i></div>
			<div class="fui-cell-text"><p>{$hassign}</p></div>
			<div class="fui-cell-remark"></div>
		</a>
	</div>
	{/if}

	{if $hasglobonus}
	<div class="fui-cell-group fui-cell-click">
		<a class="fui-cell"  href="{php echo mobileUrl('globonus')}">
			<div class="fui-cell-icon"><i class="icon icon-gudong1"></i></div>
			<div class="fui-cell-text"><p>{$plugin_globonus_set['texts']['center']}</p></div>
			<div class="fui-cell-remark"></div>
		</a>
	</div>
	{/if}

	{if $hasabonus}
	<div class="fui-cell-group fui-cell-click">
		<a class="fui-cell"  href="{php echo mobileUrl('abonus')}">
			<div class="fui-cell-icon"><i class="icon icon-profile"></i></div>
			<div class="fui-cell-text"><p>{$plugin_abonus_set['texts']['center']}</p></div>
			<div class="fui-cell-remark"></div>
		</a>
	</div>
	{/if}


	{if $hasauthor}
	<div class="fui-cell-group fui-cell-click">
		<a class="fui-cell"  href="{php echo mobileUrl('author')}">
			<div class="fui-cell-icon"><i class="icon icon-profile"></i></div>
			<div class="fui-cell-text"><p>{$plugin_author_set['texts']['center']}</p></div>
			<div class="fui-cell-remark"></div>
		</a>
	</div>
	{/if}

	{if !empty($showcard)}
	<div class="fui-cell-group fui-cell-click">
		<a class="fui-cell" href="javascript:;" onclick="addCard('{$card['card_id']}','')">
			<div class="fui-cell-icon"><i class="icon icon-same"></i></div>
			<div class="fui-cell-text"><p>{$cardtag}</p></div>
			<div class="fui-cell-remark"></div>
		</a>
	</div>
	{/if}
	    <div class="fui-cell-group fui-cell-click">
	    	<a class="fui-cell external" href="{php echo mobileUrl('identity/member/myIdentity');}" data-nocache="true">
				<div class="fui-cell-icon"><i class="icon icon-friendfill"></i></div>
				<div class="fui-cell-text"><p>我的身份</p></div>
				<div class="fui-cell-remark"></div>
			</a>
			<a class="fui-cell external" href="{php echo mobileUrl('identity/order');}" data-nocache="true">
				<div class="fui-cell-icon"><i class="iconfont">&#xe6dc;</i></div>
				<div class="fui-cell-text"><p>身份升级</p></div>
				<div class="fui-cell-remark"></div>
			</a>
			<a class="fui-cell external" href="{php echo mobileUrl('identity/member/jurisdiction');}" data-nocache="true">
				<div class="fui-cell-icon"><i class="iconfont">&#xe612;</i></div>
				<div class="fui-cell-text"><p>身份权限</p></div>
				<div class="fui-cell-remark"></div>
			</a>
		</div>

		
	  
		
	{if $hasqa}
		<div class="fui-cell-group fui-cell-click">
			<a class="fui-cell vlun-cell" href="{php echo mobileUrl('qa')}">
				<div class="fui-cell-icon"><i class="icon icon-bangzhu1"></i></div>
				<div class="fui-cell-text"><p>帮助中心</p></div>
				<div class="fui-cell-remark"></div>
			</a>
		</div>
	{/if}
	{if !is_weixin()}
	<div class="fui-cell-group fui-cell-click transparent">
		<a class="fui-cell external changepwd" href="{if !empty($member['mobileverify'])}{php echo mobileUrl('member/changepwd')}{else}{php echo mobileUrl('member/bind')}{/if}">
			<div class="fui-cell-text" style="text-align: center;"><p>修改密码</p></div>
		</a>
		<a class="fui-cell external btn-logout">
			<div class="fui-cell-text" style="text-align: center;"><p>退出登录</p></div>
		</a>
	</div>

	<div class="pop-apply-hidden" style="display: none">
		<div class="verify-pop pop">
			<div class="close"><i class="icon icon-roundclose"></i></div>
			<div class="qrcode">
				<div class="inner">
					<div class="title">{$set['applytitle']}</div>
					<div class="text">{$set['applycontent']}</div>
				</div>
				<div class="inner-btn" style="padding: 0.5rem">
					<div class="btn btn-warning" style="width: 100%; margin: 0">我已阅读</div>
				</div>
			</div>
		</div>
	</div>

	{/if}
		{template '_copyright'}
	</div>
	<script language='javascript'>
		require(['biz/member/index'], function (modal) {
			modal.init();
		});
	</script>
</div>

<script  language='javascript'>
	var lis = $('.banner-ul').find('li');
	$('.banner-ul').width(lis.length*8.3+'rem');

	function addCard(card_id,code) {

		var data = {'openid': '{php echo $_W["openid"]}', 'card_id': card_id, 'code': code};
		$.ajax({
			url: "{php echo mobileUrl('sale/coupon/getsignature')}",
			data: data,
			cache: false
		}).done(function (result) {
			var data = jQuery.parseJSON(result);
			if (data.status == 1) {
				wx.addCard({
					cardList: [
						{
							cardId: card_id,
							cardExt: data.result.cardExt
						}
					],
					success: function (res) {
						//alert('已添加卡券：' + JSON.stringify(res.cardList));
					},
					cancel: function (res) {
						//alert(JSON.stringify(res))
					}
				});
			} else {
				alert("微信接口繁忙,请稍后再试!");
				alert(data.result.message);
			}
		});
	}

</script>

<!-- {if empty($_GPC['isnewstore']) }
	{php $this->footerMenus()}
{else} -->
<!-- 
	{template '../../../plugin/identity/template/mobile/default/_menu'} -->
<!-- {/if} -->
{php include $this->template('identity/_menu');}
{template '_footer'}

<!--青岛易联互动网络科技有限公司-->